import request from "@/utils/request";

/**
 * 登录
 * @param data
 * @returns
 */
export function login(data: any) {
  return request({
    url: "/login",
    method: "post",
    data,
  });
}

/**
 * 获取用户信息
 * @param data
 * @returns
 */
export function userInfo(data: any) {
  return request({
    url: "/user/info",
    method: "post",
    data,
  });
}
